#ifndef HSE_SEARCH_ENGINE_H
#define HSE_SEARCH_ENGINE_H

#include <string>
#include "hse_common.h"
#include "hse_types.h"

namespace hse {
using std::string;


class SearchEngine {
public:
	explicit SearchEngine(string& index_path);
	void AddIndex(string& index_path);
	//return time used for query
	int RunSearch(string& query, int start, int count, vector<SearchResult>& result, int *total, int segment_length = 200);
private:
	InvertedList inverted_list_;

	DISALLOW_COPY_AND_ASSIGN(SearchEngine);
};

}

#endif

